home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / wait_nohang.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  225 b   |  13 lines

  1. #include <sys/types.h>
  2. #include <sys/wait.h>
  3. #include "haswaitp.h"
  4.  
  5. int wait_nohang(wstat) int *wstat;
  6. {
  7. #ifdef HASWAITPID
  8.   return waitpid(-1,wstat,WNOHANG);
  9. #else
  10.   return wait3(wstat,WNOHANG,(struct rusage *) 0);
  11. #endif
  12. }
  13.